package com.hmall.order.web;

import com.hmall.order.service.IOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ms SUN
 * @date 2023/5/15
 */
@Slf4j
@RestController
@RequestMapping("pay")
public class PayController {
    @Autowired
    private IOrderService orderService;
    /**
     * 订单支付
     * @param
     * @param oid
     * @return
     * @throws
     * @throws
     */
    @GetMapping("url/{paytype}/{oid}")
    public Integer pay(@PathVariable Long paytype, @PathVariable Long oid) {
        //Integer status=orderService.pay(paytype,oid);
        //return status;
        return null;
    }
}
